package com.ParkingManager.app.service.impl;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpSession;
import javax.websocket.Session;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ParkingManager.app.bean.Parking;
import com.ParkingManager.app.dao.ManageMapper;
import com.ParkingManager.app.service.ManageService;

@Service
public class ManageServiceImpl implements ManageService {

	@Autowired
	private ManageMapper  manageMapper;


	public List<Parking> getParking() {
		
		return manageMapper.getParking();
	}


	public boolean updateParking(Parking park) {
		
		return manageMapper.updateParking(park);
	}


	public boolean delectParking(int id) {
		// TODO Auto-generated method stub
		return manageMapper.delectParking(id);
	}


	public boolean insertParking(Parking park) {
		// TODO Auto-generated method stub
		return manageMapper.insertParking(park);
	}

}
